<?php
if (!defined('BASEPATH'))
    exit('No direct script access allowed');
/**
 * CodeIgniter
 *
 * An open source application development framework for PHP 5.1.6 or newer
 *
 * @package		CodeIgniter
 * @author		ExpressionEngine Dev Team
 * @copyright	Copyright (c) 2008 - 2014, EllisLab, Inc.
 * @license		http://codeigniter.com/user_guide/license.html
 * @link		http://codeigniter.com
 * @since		Version 1.0
 * @filesource
 */
// ------------------------------------------------------------------------

/**
 * CodeIgniter Header Helpers
 *
 * @package		CodeIgniter
 * @subpackage	Helpers
 * @category	Helpers
 * @author		Ricardo Oliveira
 * @link		http://studioprogramar.com.br
 */
// ------------------------------------------------------------------------

/**
 * add_js 
 *
 * Adciona um ou mais arquivos Javascript a pagina
 * recebe um array contendo os nomes dos arquivos js sem a extensão como parametro.
 *
 * @access	public
 * @param	string, array
 * @return	string
 */
if (!function_exists('recursive_array_search')) {

    function recursive_array_search($needle,$haystack) { 
    foreach($haystack as $key=>$value) { 
        $current_key=$key; 
        if($needle===$value OR (is_array($value) && recursive_array_search($needle,$value))) { 
            return $current_key; 
        } 
    } 
    return false; 
} 

}

// ------------------------------------------------------------------------
/* End of file array_helper.php */
/* Location: ./application/helpers/array_helper.php */